<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>权限管理</title>

    <#include "../common/link.ftl"/>

</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <#include "../common/navbar.ftl"/>
    <!--菜单回显-->

    <#assign currentMenu="permission"/>
    <#include "../common/menu.ftl"/>
    <div class="content-wrapper">
        <section class="content-header">
            <h1>权限管理</h1>
        </section>
        <section class="content">
            <div class="box">
                <!--高级查询--->
<form class="form-inline" id="searchForm" action="/per/list" method="post">
                    <input type="hidden" name="currentPage" id="currentPage" value="1">
                <a href="/per/reload"
                   class="btn btn-success btn_reload" style="margin: 10px;">
                    <span class="glyphicon glyphicon-repeat"></span> 重新加载
                </a>
            </form>

                <div class="box-body table-responsive no-padding ">
                    <table class="table table-hover table-bordered">
                        <tr>
                            <th>编号</th>
                            <th>权限表达式</th>
                            <th>权限名称</th>
                        </tr>
                        <#list pageInfo.list as per>
                        <tr>
                            <td>${per_index}</td>
                            <td>${per.name}</td>
                            <td>${per.expression}</td>
                            <td>
                                <a href="/per/delete?perId=${per.id}"
                                   class="btn btn-danger btn-xs">
                                    <span class="glyphicon glyphicon-trash"></span> 删除
                                </a>
                            </td>
                        </tr>
                        </#list>
                    </table>
                    <!--分页-->
                    <#include "../common/page.ftl"/>
                </div>
            </div>
        </section>
    </div>
    <#include "../common/footer.ftl"/>
</div>
</body>
</html>
